<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        <img :src="url">
        <img v-bind:src="url" :width="w" :height="h">
        <img v-bind:src="url" :width="w" :height="h+ 'px'" :title="'msg' + 欢迎你">
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                url: 'img/zhangmeng.jpg',
                w: '200px',
                h: '100px',
                msg: 'zhangmeng'
            }
        })
    </script>
</body>

</html>